package com.education.online.service.impl;


import com.education.common.utils.Convert;
import com.education.online.mapper.OPrepaMenuMapper;
import com.education.online.pojo.OPrepaMenu;
import com.education.online.service.OPrepaMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 备课共享资源目录表 服务层实现
 *
 * @author d
 * @date 2020-06-04 15:17:55
 */
@Service
public class OPrepaMenuServiceImpl implements OPrepaMenuService {

    @Autowired
    private OPrepaMenuMapper oPrepaMenuMapper;

    //查询备课共享资源目录表信息
    @Override
    public OPrepaMenu selectOPrepaMenuById(Integer id) {
        return oPrepaMenuMapper.selectOPrepaMenuById(id);
    }

    // 查询备课共享资源目录表列表
    @Override
    public List<OPrepaMenu> selectOPrepaMenuList(OPrepaMenu oPrepaMenu) {
        return oPrepaMenuMapper.selectOPrepaMenuList(oPrepaMenu);
    }

    // 新增备课共享资源目录表
    @Override
    public int insertOPrepaMenu(OPrepaMenu oPrepaMenu) {
        return oPrepaMenuMapper.insertOPrepaMenu(oPrepaMenu);
    }

    //修改备课共享资源目录表
    @Override
    public int updateOPrepaMenu(OPrepaMenu oPrepaMenu) {
        return oPrepaMenuMapper.updateOPrepaMenu(oPrepaMenu);
    }

    //删除备课共享资源目录表对象
    @Override
    public int deleteOPrepaMenuByIds(String ids) {
        return oPrepaMenuMapper.deleteOPrepaMenuByIds(Convert.toStrArray(ids));
    }
}